# coding: utf-8
# Author: zhenda


import os
import sys
print(sys.path)
rootPath = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
print(rootPath)
if rootPath and rootPath not in sys.path:
    sys.path.append(rootPath)    # 把当前项目目录 ，追加到系统环境变量中

# 项目入口
from Shopping import create_app

# app = create_app('develop')
app = create_app('product')


# def create_mysql_map():  # 创建mysql表
#     db.create_all(app=app)


if __name__ == '__main__':
    # create_mysql_map()
    app.run()  # 启动
